/* CPP Assignemnt 3 (COSC1152-2011-S2)
 * Elliott O'Dea-Joyce s3074110@student.rmit.edu.au
 * Ross Nye s9455459@student.rmit.edu.au
 *
 * This code written by Jesse Archer
 */

#ifndef UTILS_H
#define UTILS_H


#include <iostream>
#include <fstream>
#include <stdexcept>
#include <string>
#include <istream>
#include <sstream>
#include <cstdlib>
#include <cmath>
#include <float.h>
#include <iterator>
#include <vector>
#include <stack>
#include <algorithm>
#include <utility>


struct Timer
{
	static std::stack<clock_t> startTimes;
	static std::stack<clock_t> endTimes;
};

void beginTimer();
void endTimer();
float getTime();

int toInt(const std::string &str);
float toFloat(const std::string &str);

std::vector<std::string> tokenize(std::string str, std::string tokens = " ");

#endif
